<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文化馆</title>
    <link rel="stylesheet" href="../css/ext/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="../css/upload/diyUpload.css">
    <link rel="stylesheet" href="../css/common/base.css">
    <script src="../js/ext/jquery-1.11.3.js"></script>
    <script src="../js/ext/bootstrap.min.js"></script>
    <script type="text/javascript" src="../js/ext/webuploader/webuploader.js"></script>
    <script src="../js/base.js"></script>
</head>
<body>
<% include ../common/header.jsp %>
<div class="main">
    <% include ../common/menu.jsp %>
    <div class="main-content">
        <div class="wrapper">
            <div class="content-title">
                <!--面包屑-->
                <ol class="breadcrumb">
                    <li class="active">多文件上传</li>
                </ol>
            </div><!--content-title-->
            <!--添加应用-->
            <div class="add-application">
                <div id="as"></div>
            </div>
        </div>
    </div>
</div>
<script src="/js/upload/diyUpload.js"></script>
<script type="text/javascript">
    /*
     * 服务器地址,成功返回,失败返回参数格式依照jquery.ajax习惯;
     * 其他参数同WebUploader
     */
    var timestamp = (new Date()).valueOf();
    var rand = Math.random();
    var myUUID = rand+"-"+timestamp;
    $('#as').diyUpload({
//        url:'/uploadfiles?uuid='+myUUID,
        url:'/uploadfiles',
        buttonText : '添加应用',
        chunked:true,
        // 分片大小
        chunkSize:1024*1024*800,//800M
        chunkRetry:5,
        threads:1,
        //最大上传的文件数量, 总文件大小,单个文件大小(单位字节);
        fileNumLimit:50,
        fileSizeLimit:1024*1024*1024*5, //5G
        fileSingleSizeLimit:1024*1024*500,//500M
        accept: {}
    });
</script>
</body>
</html>